//
//  MHCompanyDetailController.m
//  M-Saler
//
//  Created by Teresa on 2020/5/21.
//  Copyright © 2020 Teresa. All rights reserved.
//

#import "MHCompanyDetailController.h"
#import <SDWebImage/SDWebImage.h>

@interface MHCompanyDetailController ()

@property (weak, nonatomic) IBOutlet UIImageView *logoImageView;
@property (weak, nonatomic) IBOutlet UILabel *companyNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *telLabel;
@property (weak, nonatomic) IBOutlet UILabel *addrLabel;
@property (weak, nonatomic) IBOutlet UITextView *InfotextView;

@end

@implementation MHCompanyDetailController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self configNavBarWhite];
}

-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    [self refreshUI];
}

-(void)refreshUI{
    self.title = @"公司详情";
    self.companyNameLabel.text = self.model.shop_name;
    self.telLabel.text = self.model.tel;
    self.addrLabel.text = self.model.address;
    self.InfotextView.text = self.model.intro;
    [self.logoImageView sd_setImageWithURL:[NSURL URLWithString:self.model.logo] placeholderImage:[UIImage imageNamed:@"cell_icon_default"]];
}

@end
